Companion
Properties
Compare two accounts by name, for sorting a list by account name. Uses the full name so that sub-accounts are kept with their parent accounts.
Compare two accounts, first hierarchically by account type, and then by case-insensitive name comparison. Please note: case-insensitive comparisons are slow, so don't do this frequently.
Compare two accounts by name, for sorting a list by account name. Uses the full name so that sub-accounts are kept with their parent accounts.
Sort by check#, but only check the parent's check# and ignore the split's.
Comparator for sorting transactions by date-entered.
Compare two transactions, first by transaction date and then, if the dates are the same, by the date the transaction was created. , first hierarchically by account type, and then by case-insensitive name comparison. Please note: case-insensitive comparisons are slow, so don't do this frequently.
Sort by non-category account. Only use this when sorting splits.
Sort by tax date then by check#.
Functions
Retrieves a set of all accounts from the provided account book that match the given search filter
Return a list of accounts matching the given filter
Compare the category account for two transactions.
Compare the two transactions based on their check number and then their amount if the check numbers are the same. @since build 566
Compare the check number field for both numeric only and also text values.
Compare the check number field, but only use the parent transaction's check number, do not use the check number for a split. This is used for sorting transactions for display to the user. At this time the user may not specify a check number for a split, so it is irrelevant and messes up the sort order.
Compare the description, or 'payee', of two transactions.
Compare the tax date of two transactions.
Find and return the account having the given UUID
Adds to the list of all items that reference the given account. This is used to gather a list of items that must be deleted when the account is deleted.
Return the first account that matches the given filter under the specified account
Return an iterator for all of the accounts that are under the given account. If the root account is provided, all accounts will be included in the iterator.
Return an iterator for all of the accounts that are within the given data set. If the root account is provided, all accounts will be included in the iterator.
Get a single account's balance as of a given date. Transactions for that date will be included, so it is the balance as of the end of the given date. The balance will be in the account's currency type.
Get a single account's balance as of a list of given dates. The balances will be in the account's currency type. This method returns a zero balance if the given dates are before the earliest transaction and the account's start date.
Get a single account's balance as of a list of given dates. The balances will be in the account's currency type. If a given date is prior to both the earliest transaction and the account's start date, then return Long.MIN_VALUE for the balance. Transactions for the given date will be included, so it is the balance as of the end of the given date. If outOfDateAsZero is true, this is overridden and 0 is returned even if the date is too early.
Returns the account of the other side of the given transaction, but only if the other side doesn't contain multiple splits.
Get the default category to use for transactions in the given account. This is guaranteed to return a non-null value.
Get the default category to use for fees in the given account. This is guaranteed to return a non-null value.
Get the default transfer account for transaction in the given account.
Return an AcctFilter that applies the given filter but also disallows inactive accounts (or offspring of inactive accounts)
Return the non-category account from a transaction. If there are only category accounts on both sides of the transaction, or if it is in a category account with more than one split, return null.
Inserts the given transaction into the specified array in sorted order.
Returns true iff the given online account can be associated with the given local account.
Gather the current value of all accounts matching the given filter for each currency